home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Communications / Divers / DinkClass ƒ / DC Scribble / DScribbleDoc.h < prev    next >
Encoding:
Text File  |  1992-10-11  |  1.2 KB  |  61 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        DScribbleDoc.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    © 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration of the DScribbleDoc
  12. // sub-class to DDocument
  13. #ifndef __DSCRIBBLEDOC__
  14. #define __DSCRIBBLEDOC__
  15.  
  16. //class DDocument;
  17. #include "DDocument.h"
  18. #include "DScribbleWind.h"
  19.  
  20.  
  21. class DScribbleDoc : public DDocument
  22. {
  23. public:
  24.     
  25.     PicHandle        fPict;
  26.     Handle            fPictHeader;
  27.     
  28.     DScribbleDoc(void);
  29.     ~DScribbleDoc(void);
  30.         // the destructor cleans up the member variable handles
  31.         // and the constructor is just a stub there for style....
  32.         
  33.     virtual     DDocument* Init( Boolean OpenFromFile);
  34.             // put variables into a safe state
  35.     
  36.     virtual void     AEInitDoc(FSSpec *theFSS);
  37.  
  38.     virtual void HandleMenuChoice(short menuID, short menuItem);            
  39.     virtual void SetUpMenues(void);
  40.     virtual DWindow*     MakeWindow(Boolean hasColorWindows);
  41.  
  42.     virtual OSErr         ReadData(short refNum, long *size);
  43.     virtual OSErr         WriteData(short refNum);
  44.  
  45. }; //end of DScribbleDoc class declaration
  46.  
  47.  
  48. #define    kHAdjust    50
  49. #define    kWAdjust    40
  50.  
  51. #define rPenMenu    131
  52. #define i1X1    1
  53. #define i2X2    2
  54. #define i3X3    3
  55. #define iBlack    5
  56. #define iGray    6
  57. #define iWhite    7
  58. #define    kEveryItem    0
  59.  
  60. #endif __DSCRIBBLEDOC__
  61.